package com.cdu.supermarket.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

/**
 * 商品属性值
 */
@TableName("goods_attribute_value")
public class GoodsAttributeValue implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("goods_id")
    private Long goodsId;
    @TableField("attr_id")
    private Long attrId;
    private String value;
    
    @TableField(exist = false)
    private String attrName;
    @TableField(exist = false)
    private String attrCode;
    @TableField(exist = false)
    private String attrType;
    
    @TableField(exist = false)
    private List<GoodsAttributeOption> options;

    public GoodsAttributeValue() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getAttrId() {
        return attrId;
    }

    public void setAttrId(Long attrId) {
        this.attrId = attrId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getAttrCode() {
        return attrCode;
    }

    public void setAttrCode(String attrCode) {
        this.attrCode = attrCode;
    }

    public String getAttrType() {
        return attrType;
    }

    public void setAttrType(String attrType) {
        this.attrType = attrType;
    }
    
    public List<GoodsAttributeOption> getOptions() {
        return options;
    }

    public void setOptions(List<GoodsAttributeOption> options) {
        this.options = options;
    }
} 